﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using HHL_BusAcc.BussinessObject;
using HHL_TranferAcc;

namespace HHL_Acc
{
    public partial class DangNhapFRM : Form
    {
        public DangNhapFRM()
        {
            InitializeComponent();
        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            GenLoginsBus bus = new GenLoginsBus();
            GenLogins login = bus.CheckLogin(txtAccount.Text, txtPassword.Text);

            if (login == null)
            {
                MessageBox.Show("Password hoac mat khau ko dung");
                return;
            }
            SessionUser.GenLogin = login;
            this.Close();
        }
    }
}
